package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券信息管理对象 coupon_info
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public class CouponInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券编号 */
    private Long couponId;

    /** 优惠券数量 */
    @Excel(name = "优惠券数量")
    private Long couponnNum;

    /** 优惠券金额 */
    @Excel(name = "优惠券金额")
    private Long subsidy;

    /** 优惠券标题 */
    @Excel(name = "优惠券标题")
    private String title;

    /** 优惠券介绍 */
    @Excel(name = "优惠券介绍")
    private String introduce;

    /** 优惠券库存 */
    @Excel(name = "优惠券库存")
    private Long stock;

    /** 优惠券发出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠券发出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 优惠券过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠券过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 优惠券是否过期(0未过期，1过期) */
    @Excel(name = "优惠券是否过期(0未过期，1过期)")
    private Long isExpired;

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setCouponnNum(Long couponnNum) 
    {
        this.couponnNum = couponnNum;
    }

    public Long getCouponnNum() 
    {
        return couponnNum;
    }
    public void setSubsidy(Long subsidy) 
    {
        this.subsidy = subsidy;
    }

    public Long getSubsidy() 
    {
        return subsidy;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }
    public void setIsExpired(Long isExpired) 
    {
        this.isExpired = isExpired;
    }

    public Long getIsExpired() 
    {
        return isExpired;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponId", getCouponId())
            .append("couponnNum", getCouponnNum())
            .append("subsidy", getSubsidy())
            .append("title", getTitle())
            .append("introduce", getIntroduce())
            .append("stock", getStock())
            .append("sendTime", getSendTime())
            .append("expireTime", getExpireTime())
            .append("isExpired", getIsExpired())
            .toString();
    }
}
